/*
 * DisplayImage.java
 * Created on December 24, 2007, 3:55 AM by Uru
 *
 * Holds and draws an image
 */

package MenuSystem;

import java.awt.*;
import javax.swing.*;

public class DisplayImage implements SelfDrawing{
    protected Image img;
    
    //Creates a new instance of DisplayImage
    public DisplayImage(Image i) {
        img = i;
    }
    
    //draws the image
    public void draw(Graphics2D g, int mx, int my, JComponent screen){
        g.drawImage(img,mx,my,screen);
    }
    
}
